<?xml version='1.0' encoding='UTF-8' ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:sec="http://www.springframework.org/security/tags">

    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />        
        <h:outputStylesheet name="default.css" library="css"/>
        <h:outputStylesheet name="cssLayout.css" library="css"/>
        
        <title>Facelets Template</title>
    </h:head>

    <h:body>

        <div id="top">
            <ui:insert name="top">Top</ui:insert>
        </div>
        <div>
            <div id="left">
                <h:panelGrid columns="1">
                    <h:outputLink value="#{application.contextPath}/index.xhtml">#{i18n.home}</h:outputLink>
                    <h:outputLink value="#{application.contextPath}/admin/index.xhtml">#{i18n.homeAdmin}</h:outputLink>
                    <!-- http://doanduyhai.wordpress.com/2012/02/26/spring-security-part-v-security-tags/ -->
                    <h:form rendered="#{sec:areAnyGranted('ROLE_ADMIN,ROLE_USUARIO')}">
                        <h:commandLink action="#{login.salir}"><h:outputText value="#{i18n.salir}"/></h:commandLink>
                    </h:form>                        
                </h:panelGrid>
            </div>
            <div id="content" class="left_content">
                <ui:insert name="content">Content</ui:insert>
            </div>
        </div>
        <div id="bottom">
            <ui:insert name="bottom">Bottom</ui:insert>
        </div>

    </h:body>

</html>
